Generalized filtering